All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.sound.SndChannel

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.sound.SndChannel

public final class SndChannel
extends QTObject
implements QuickTimeLib
Sound Channels are used to playback sound.


Constructor Index

 o SndChannel(int, int)
Opens a new SndChannel and allocates memory to store the commands that will control the operation of the sound channel.

Method Index

 o isQuietNow()
Returns the current setting of the quietNow flag.
 o play(SndHandle)
Plays a sound asynchronously from memory.
 o setQuietNow(boolean)
This flag controls whether a sound channel is silent when it is disposed of, which can be some indeterminate time of the java GarbageCollector, or after any sound that is currently playing is finished.

Constructors

 o SndChannel
 public SndChannel(int synth,
                   int init) throws QTException
Opens a new SndChannel and allocates memory to store the commands that will control the operation of the sound channel.

QuickTime::SndNewChannel

Parameters:
synth - the sound data type you intend to play on this channel
init - the desired initialization parameters for the channel.

Methods

 o isQuietNow
 public final boolean isQuietNow()
Returns the current setting of the quietNow flag.

 o setQuietNow
 public final void setQuietNow(boolean flag)
This flag controls whether a sound channel is silent when it is disposed of, which can be some indeterminate time of the java GarbageCollector, or after any sound that is currently playing is finished.
The default setting is to allow the sound to finish playing - the flag is set to false. If you wish to explicitly stop a sound then you should do so.

 o play
 public final void play(SndHandle sndHdl) throws SoundException
Plays a sound asynchronously from memory.

QuickTime::SndPlay QuickTime::SndPlay

Parameters:
chan - if supplied the sound is played asynchronously using this channel
sndHdl - the handle that has the sound data in it

All Packages  Class Hierarchy  This Package  Previous  Next  Index